<?php
    foreach ($block as $key => $value){
        echo CHtml::openTag('div', array('style' => 'overflow: hidden'));
        echo CHtml::openTag('div', array('class' => 'block-content'));
        echo CHtml::tag('div', array('style' => '', 'class' => 'block-title'),$value->title."-".$value->description);
        echo CHtml::closeTag('div');       
        Product::loadProductInBlock($value->category_id);
        echo CHtml::closeTag('div');
    }
   
?>

<script>
    $().ready(function(){
        
        $(".product-items-detail").click(function(){
            id = $(this).find('a').attr('id');
            
            $.fancybox.open({
                href : '<?php echo '/www/Gemini/index.php/product/view/id/' ?>'+id+"/ajax/true",
                type : 'iframe'
            });

            return false;
        });
    });
</script>
